package com.example.tourpal.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class PlanData implements Serializable {

	private static final long serialVersionUID = 1L;
	private String name;
	private String description;
	private String endTime;
	private String startTime;
	private Integer ispublic;
	private Integer planOrder;
	private Integer id;
	private List<ConsumeEasy> eats = new ArrayList<PlanData.ConsumeEasy>();
	private List<ConsumeEasy> hotels = new ArrayList<PlanData.ConsumeEasy>();
	private List<ConsumeEasy> trffics = new ArrayList<PlanData.ConsumeEasy>();
	private List<ConsumeEasy> others = new ArrayList<PlanData.ConsumeEasy>();
	private List<ConsumeEasy> recreations = new ArrayList<PlanData.ConsumeEasy>();
	private List<ConsumeEasy> shoppings = new ArrayList<PlanData.ConsumeEasy>();
	private List<ConsumeEasy> tours = new ArrayList<PlanData.ConsumeEasy>();
	private Integer delFlg = 1;
	
	public Integer getDelFlg() {
		return delFlg;
	}

	public void setDelFlg(Integer delFlg) {
		this.delFlg = delFlg;
	}

	public Integer getPlanId() {
		return id;
	}

	public void setPlanId(Integer planId) {
		this.id = planId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getEndTime() {
		return endTime;
	}

	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}

	public String getStartTime() {
		return startTime;
	}

	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}

	public Integer getIspublic() {
		return ispublic;
	}

	public void setIspublic(Integer ispublic) {
		this.ispublic = ispublic;
	}

	public Integer getPlanOrder() {
		return planOrder;
	}

	public void setPlanOrder(Integer planOrder) {
		this.planOrder = planOrder;
	}

	public List<ConsumeEasy> getEats() {
		// if (eats == null)
		// eats = new ArrayList<PlanData.ConsumeEasy>();
		return eats;
	}

	public void setEats(List<ConsumeEasy> eats) {
		this.eats = eats;
	}

	public List<ConsumeEasy> getHotels() {
		// if (hotels == null) {
		// hotels = new ArrayList<PlanData.ConsumeEasy>();
		// }
		return hotels;
	}

	public void setHotels(List<ConsumeEasy> hotels) {
		this.hotels = hotels;
	}

	public List<ConsumeEasy> getTrffics() {
		// if (trffics == null) {
		// trffics = new ArrayList<PlanData.ConsumeEasy>();
		// }
		return trffics;
	}

	public void setTrffics(List<ConsumeEasy> trffics) {
		this.trffics = trffics;
	}

	public List<ConsumeEasy> getOthers() {
		// if (others == null) {
		// others = new ArrayList<PlanData.ConsumeEasy>();
		// }
		return others;
	}

	public void setOthers(List<ConsumeEasy> others) {
		this.others = others;
	}

	public List<ConsumeEasy> getRecreations() {
		// if (recreations == null) {
		// recreations = new ArrayList<PlanData.ConsumeEasy>();
		// }
		return recreations;
	}

	public void setRecreations(List<ConsumeEasy> recreations) {
		this.recreations = recreations;
	}

	public List<ConsumeEasy> getShoppings() {
		// if (shoppings == null) {
		// shoppings = new ArrayList<PlanData.ConsumeEasy>();
		// }
		return shoppings;
	}

	public void setShoppings(List<ConsumeEasy> shoppings) {
		this.shoppings = shoppings;
	}

	public List<ConsumeEasy> getTours() {
		// if (tours == null) {
		// tours = new ArrayList<PlanData.ConsumeEasy>();
		// }
		return tours;
	}

	public void setTours(List<ConsumeEasy> tours) {
		this.tours = tours;
	}

	public static class ConsumeEasy implements Serializable {

		private static final long serialVersionUID = 1L;
		private Integer classOrder;
		private String description;
		private Integer type;
		private String createTime;
		private Integer delFlg = 1;

		public Integer getDelFlg() {
			return delFlg;
		}

		public void setDelFlg(Integer delFlg) {
			this.delFlg = delFlg;
		}

		public Integer getClassOrder() {
			return classOrder;
		}

		public void setClassOrder(Integer classOrder) {
			this.classOrder = classOrder;
		}

		public String getDescription() {
			return description;
		}

		public void setDescription(String description) {
			this.description = description;
		}

		public Integer getType() {
			return type;
		}

		public void setType(Integer type) {
			this.type = type;
		}

		public String getCreateTime() {
			return createTime;
		}

		public void setCreateTime(String createTime) {
			this.createTime = createTime;
		}

		@Override
		public String toString() {
			return "ConsumeEasy [classOrder=" + classOrder + ", description="
					+ description + ", type=" + type + ", createTime="
					+ createTime + ", delFlg=" + delFlg + "]";
		}

	}

	// public static class Eat extends ConsumeEasy implements Serializable {
	//
	// private static final long serialVersionUID = 1L;
	//
	// }
	//
	// public static class Hotel extends ConsumeEasy implements Serializable {
	//
	// private static final long serialVersionUID = 1L;
	//
	// }
	//
	// public static class Trffic extends ConsumeEasy implements Serializable {
	//
	// private static final long serialVersionUID = 1L;
	//
	// }
	//
	// public static class Other extends ConsumeEasy implements Serializable {
	//
	// private static final long serialVersionUID = 1L;
	//
	// }
	//
	// public static class Recreation extends ConsumeEasy implements
	// Serializable {
	//
	// private static final long serialVersionUID = 1L;
	//
	// }
	//
	// public static class Shopping extends ConsumeEasy implements Serializable
	// {
	//
	// private static final long serialVersionUID = 1L;
	//
	// }
	//
	// public static class Tour extends ConsumeEasy implements Serializable {
	//
	// private static final long serialVersionUID = 1L;
	//
	// }
}
